%% Pokaz danych
clc;
clear all;
clf;
load data;
myvars = who;
for i=1:length(myvars)
%% Dane  punkty
temp  = eval(myvars{i});
clf;
center_of_cluster = temp;    


% plot(center_of_cluster(:,1),center_of_cluster(:,2),'mo','MarkerSize',10,'MarkerEdgeColor','k',...
%                 'MarkerFaceColor',[.49 1 .63])
scatter(center_of_cluster(:,1),center_of_cluster(:,2),center_of_cluster(:,3),'MarkerEdgeColor','b',...
              'MarkerFaceColor','c',...
              'LineWidth',1)
hold all
%% Dane wagi
Stops.getInstance.init(center_of_cluster(:,1:2),generate_distances(center_of_cluster(:,1:2)),center_of_cluster(:,3))
I1=SimpleIndividual();
I1.connections =  (Stops.getInstance.distances >100); % macierz polaczen tak jak w conectivity_test1 - warunek dlugosc

I1.disp_connections();
end